package com.zwl.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("materials")
public class Materials {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    @TableField("material_image")
    private String materialImage;
    
    @TableField("material_name")
    private String materialName;
    
    @TableField("total_quantity_needed")
    private Integer totalQuantityNeeded;
    
    @TableField("unit_price")
    private Integer unitPrice;
    
    @TableField("total_value")
    private Integer totalValue;
    
//    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;
    
//    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
}